﻿using Modbus.Device;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Threading;

namespace IndustrialControlLibrary
{
    public partial class HMI_O_Light : UserControl
    {
        public HMI_O_Light()
        {
            InitializeComponent();
        }


        /// <summary>
        /// 从connection获取数据用于显示
        /// </summary>
        /// <param name="value"></param>
        public void DisplayValue(string value)
        {
            if (value=="True")
            {
                this.label1.ForeColor = Color.Red;
            }
            else
            {
                this.label1.ForeColor = Color.Gray;
            }

        }

    }
}
